home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
winlib3.zip
/
BSTRING.H
< prev
next >
Wrap
Text File
|
1991-01-14
|
715b
|
28 lines
#ifndef BIT_STRING_DEF
#define BIT_STRING_DEF
#undef PROTO_DEF
#include <proto.h>
typedef struct
{
unsigned char *bit_string;
unsigned nbits;
} BITSTRING;
#define clear_bits(b,s,e) set_clear_bits((b),(s),(e),0)
#define set_bits(b,s,e) set_clear_bits((b),(s),(e),1)
#if __cplusplus
extern "C" {
#endif
int create_bit_string P((BITSTRING *, unsigned));
void free_bit_string P((BITSTRING *));
void set_clear_bits P((BITSTRING *, unsigned, unsigned, int));
unsigned get_bits_set P((BITSTRING *));
int test_bit P((BITSTRING *, unsigned));
unsigned get_first_bit_set P((BITSTRING *, unsigned));
#if __cplusplus
}
#endif
#endif